home *** CD-ROM | disk | FTP | other *** search
- KBD executes a script at shutdown time.
- Requirements: Execute in C: directory, and S:KBD.script (see text)
- Written in assembly language only.
-
- You can think of KBD as a switch. Run it once, and the resethandler
- is installed. Run it again, and the resethandler is removed.
-
- Usage:
-
- Run >NIL: KBD ; installs KBD
- KBD ; removes KBD
-
- KBD installs a resethandler, which executes a user-supplied
- script when the user presses Ctrl-Amiga-Amiga.
- KBD needs this script as S:KBD.script, and it needs Execute
- in C:.
-
- To install, KBD should be _run_ (from shell), it doesn't
- detach by itself. You can remove KBD by sending Ctrl-C to it,
- or by just executing it again ( just 'KBD', no need to run it).
- This is because KBD installs its own messageport, which
- it looks for when it's started. If it finds a port, it just
- sends a Ctrl-C to this port.
-
- KBD is not yet allowed to run from Workbench ( Don't attach
- an icon to it )
-
- KBD uses the fact that when you press Ctrl-Amiga-Amiga,
- keyboard.device calls installed reset-handlers and lets
- them execute code before the machine goes to reset.
- When KBD's handler is called, it signals the parent
- process, which executes the script in S:KBD.script,
- and uninstalls the resethandler when the script is done,
- allowing keyboard.device to continue with the shutdown.
- Please don't waste in this script. Note that the Amiga will
- reset after 10 seconds anyway.
- Note also: The keyboard stops responding after you press C-a-a,
- so you can't type anything.
-
- Tested and found working on the following machines:
- A4000/040(w/mufs), A1200/020(wo/mufs), A1200/030/50Hmz(w/mufs).
- No problems experienced. No known bugs. Not tested from
- Workbench (I _know_ it will crash, though)
-
- Tested and found NOT working on:
- A500.
-
- NOT tested on:
- A1000, A2000, A3000 and other Amigas. I would like to hear
- from people who have these machines (email address below)
-
-
- KBD is freeware. If you re-distribute this archive, please
- keep it intact.
- Source is not included, but the code is based upon the
- keyboard.device example code in RKM:libs/devs 2.ed.
-
- My email address is skrsmoen@nvg.unit.no, if you wonder
- about anything, find any bugs, have any complaints or
- suggestion, want to see the source, or just want to talk.
-
- Rune
-